# -*- coding: utf-8 -*-
import copy as _copy
from Decorator import Decorator

class Pagination(Decorator):
    """docstring for Pagination"""

    def all(self,env=None):
        env = _copy.deepcopy(self.arguments) if self.arguments is not None else {}
        # 一些分页有关的代码
        if env.has_key('per_page_num'):
            print 'Pagination',env['per_page_num']
        return self.model.all(env)


